<?php
/**
 * Created by PhpStorm.
 * User: Aliaxander Lazerka
 * Date: 10/26/14
 * Time: 6:59 AM
 */

class Security {

  static function encryptPassword($login, $password){
    $tmpLogin = hash("tiger192,4", $login);
    $tmpConnector = hash("ripemd256", "INBT");
    $tmpPassword = hash("haval224,3", $password);
    $encryptedString = hash("snefru256", $tmpLogin . $tmpConnector . $tmpPassword);
    return $encryptedString;
  }

} 